<%@ page import="cn.ecut.pojo.People" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>usejavabean</title>
</head>
<body>

<%
 /*   People people = new People();
    people.setId(1);
    people.setName("rx");
    people.setAge(18);
    people.setAddress("吉安");*/
%>
<jsp:useBean id="people" class="cn.ecut.pojo.People" scope="page"/>

<jsp:setProperty name="people" property="name" value="rx"/>
<jsp:setProperty name="people" property="age" value="18"/>
<jsp:setProperty name="people" property="address" value="吉安"/>
<jsp:setProperty name="people" property="id" value="1"/>

姓名：<jsp:getProperty name="people" property="name"/><br/>
年龄：<jsp:getProperty name="people" property="age"/><br/>
地址：<jsp:getProperty name="people" property="address"/><br/>
id：<jsp:getProperty name="people" property="id"/>
</body>
</html>
